home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Environments / MacCjr / MacC Jr / Library Folder / C Include Folder / Macdefs.h < prev    next >
Encoding:
Text File  |  1987-01-06  |  1.2 KB  |  61 lines  |  [TEXT/EDIT]

  1. // MacDefs.h
  2. // © Copyright 1984 Consulair Corp, All Rights Reserved.
  3. // Portions © Copyright Apple Computer, Inc: 1982, 1983, 1984
  4. //            Stanford University, SUMEX project: 1984
  5.  
  6. #ifdef ToolkitLoaded
  7.   #Options E
  8.    ####You cannot include Inside Mac header files with MacCmemdefs.h and MacCIOdefs.h####
  9.    /* #######WARNING:  This files uses an integer size of 32 bits.  IT IS NOT COMPATIBLE
  10.    with the header files MacCmemdefs.h and MacCIOdefs.h, which use a 16 bit integer. */
  11.    #endif
  12.  
  13. #ifndef MacdefsLoaded
  14.  
  15. #define MacdefsLoaded
  16.  
  17. // Generally Used Definitions
  18.  
  19.      typedef   long    OSType;
  20.      typedef   short   OSErr;
  21.      #define   noErr   0
  22.  
  23. // General Data Types
  24.   
  25.   typedef    char *Ptr;
  26.   typedef    char **Handle;    
  27.   
  28.   typedef    long (*ProcPtr)();    /* pointer to a procedure */
  29.   
  30.   typedef struct
  31.     {
  32.     char count;
  33.     char s[255];
  34.     } Str255;
  35.   
  36.  
  37. // Points and Rectangles
  38.   
  39.   #define VHSelect int;
  40.   
  41.     typedef struct Point
  42.       {
  43.       short    v, h;
  44.       } Point;
  45.     
  46.   typedef struct Rect
  47.     {
  48.     Point    topLeft;
  49.     Point    botRight;
  50.     } Rect;
  51.   
  52.   #define    top    topLeft.v
  53.   #define    left    topLeft.h
  54.   #define    bottom    botRight.v
  55.   #define    right    botRight.h
  56.   
  57. #endif
  58.  
  59.  
  60.  
  61.